﻿using XsqTech.SmartOA.Dtos.DTO;

namespace XsqTech.SmartOA.IRespository.Base
{
    public interface IBaseRespository<T> where T : class, new()
    {
        void Add(T m);
        void Delete(object id);
        IQueryable<T> Query();
        void Update(T m);
        int Upt(UptDepartmentsDto model);
        T GetById(Guid id); //通过主键查找
        T GetBysId(object id); //通过主键查找
    }
}